Vue.component("component-sidebar", {
  template: `
    <!-- Left side column. contains the logo and sidebar -->
    <div class="main-sidebar" style="position: fixed; height: 100%">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="../img/base/avatar-default.png" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>Administrator</p>
                    <!-- Status -->
                    <a href="#">
                        <i class="fa fa-circle text-success"></i>超级管理员</a>
                </div>
            </div>

            <!-- search form (Optional) -->
            <form action="#" method="get" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="搜索...">
                    <span class="input-group-btn">
                        <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                            <i class="fa fa-search"></i>
                        </button>
                    </span>
                </div>
            </form>
            <!-- /.search form -->

            <!-- Sidebar Menu -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">导航栏</li>
                <!-- Optionally, you can add icons to the links -->


                <li>
                    <a href="sellerManager.html">
                        <i class="fa fa-bank"></i> 
                        <span>商家管理</span>
                    </a>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-bank"></i>
                        <span>用户管理</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="userManager.html">
                                <i class="fa fa-star"></i>
                                <span>会员中心</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-user"></i>
                                <span>后台人员</span>
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-shopping-cart"></i>
                        <span>商品管理</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="goodClassification.html">
                                <i class="fa fa-circle"></i>
                                <span>分类管理</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>新品推荐</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>商品排名</span>
                            </a>
                        </li>
                        <li>
                            <a href="addGoods.html">
                                <i class="fa fa-circle"></i>
                                <span>商品添加</span>
                            </a>
                        </li>
                        <li>
                            <a href="goodsModification.html">
                                <i class="fa fa-circle"></i>
                                <span>商品列表</span>
                            </a>
                        </li>

                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-building"></i>
                        <span>订单管理</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>订单追踪</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>订单修改</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>订单删除</span>
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-bar-chart"></i>
                        <span>数据统计</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>销量统计</span>
                            </a>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>盈利情况</span>
                            </a>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>客户数量</span>
                            </a>
                            <a href="#">
                                <i class="fa fa-circle"></i>
                                <span>反馈统计</span>
                            </a>

                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa-bell"></i>
                        <span>消息中心</span>
                    </a>
                </li>
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </div>
  `
});

var appSidebar = new Vue({
  el: "#app-sidebar"
});
